package com.zch.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zch.dao.ActivitymessageMapper;
import com.zch.dao.model.Activitymessage;
import com.zch.dao.model.ActivitymessageExample;
import com.zch.daoEx.ActivitymessageMapperEx;
import com.zch.daoEx.model.ActivitymessageEx;

@Service
public class ActivitymessageService {
	@Autowired
	private ActivitymessageMapper activitymessageMapper;
	@Autowired
    private ActivitymessageMapperEx activitymessageMapperEx;

	public int countByExample(ActivitymessageExample example) {
		return this.activitymessageMapper.countByExample(example);
	}

	public Activitymessage selectByPrimaryKey(String id) {
		return this.activitymessageMapper.selectByPrimaryKey(id);
	}

	public List<Activitymessage> selectByExample(ActivitymessageExample example) {
		return this.activitymessageMapper.selectByExample(example);
	}


	public int deleteByPrimaryKey(String id) {
		return this.activitymessageMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(Activitymessage record) {
		return this.activitymessageMapper.updateByPrimaryKeySelective(record);
	}


	public int updateByPrimaryKey(Activitymessage record) {
		return this.activitymessageMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(ActivitymessageExample example) {
		return this.activitymessageMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(Activitymessage record, ActivitymessageExample example) {
		return this.activitymessageMapper.updateByExampleSelective(record, example);
	}


	public int updateByExample(Activitymessage record, ActivitymessageExample example) {
		return this.activitymessageMapper.updateByExample(record, example);
	}

	public int insert(Activitymessage record) {
		return this.activitymessageMapper.insert(record);
	}

	public int insertSelective(Activitymessage record) {
		return this.activitymessageMapper.insertSelective(record);
	}

    public List<ActivitymessageEx> selectList(Map<String, Object> map) {
        return this.activitymessageMapperEx.selectList(map);
    }

    public List<ActivitymessageEx> selectAppList(Map<String, Object> map) {
        return this.activitymessageMapperEx.selectAppList(map);
    }

    public ActivitymessageEx selectDetail(Map<String, Object> map) {
        return this.activitymessageMapperEx.selectDetail(map);
    }

    public List<ActivitymessageEx> selectMyList(Map<String, Object> map) {
        return this.activitymessageMapperEx.selectMyList(map);
    }

    public int cancleTops(Map<String, Object> map) {
        return this.activitymessageMapperEx.cancleTops(map);
    }

    public List<ActivitymessageEx> selectIsRead(Map<String, Object> map) {
        return this.activitymessageMapperEx.selectIsRead(map);
    }

    public List<ActivitymessageEx> selectIsReads(Map<String, Object> map) {
        return this.activitymessageMapperEx.selectIsReads(map);
    }

}
